
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.PigType;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage PigType entities.
 * 
 */
public interface PigTypeDAO extends JpaDao<PigType> {

	/**
	 * JPQL Query - findPigTypeByMemo
	 *
	 */
	public Set<PigType> findPigTypeByMemo(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByMemo
	 *
	 */
	public Set<PigType> findPigTypeByMemo(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByPrimaryKey
	 *
	 */
	public PigType findPigTypeByPrimaryKey(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByPrimaryKey
	 *
	 */
	public PigType findPigTypeByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByMemoContaining
	 *
	 */
	public Set<PigType> findPigTypeByMemoContaining(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByMemoContaining
	 *
	 */
	public Set<PigType> findPigTypeByMemoContaining(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllPigTypes
	 *
	 */
	public Set<PigType> findAllPigTypes() throws DataAccessException;

	/**
	 * JPQL Query - findAllPigTypes
	 *
	 */
	public Set<PigType> findAllPigTypes(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeById
	 *
	 */
	public PigType findPigTypeById(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeById
	 *
	 */
	public PigType findPigTypeById(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByName
	 *
	 */
	public Set<PigType> findPigTypeByName(String name) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByName
	 *
	 */
	public Set<PigType> findPigTypeByName(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByNameContaining
	 *
	 */
	public Set<PigType> findPigTypeByNameContaining(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigTypeByNameContaining
	 *
	 */
	public Set<PigType> findPigTypeByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

}